﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DamageCalculator.Classes
{
    public class Entry
    {
        double mAmmount;
        String mSkill;
        String mOtherChar;
        String mActiveChar;
        String mDmgType;
        long mTimeStamp;
        ParsableLogEntry.EventTypes mEventType;


        public Entry(long pTimeStamp, double pAmmount, String pSkill, String pOtherChar, String pActiveChar, String pDmgtype, ParsableLogEntry.EventTypes pEventType)
        {
            this.mAmmount = pAmmount;
            this.mSkill = pSkill;
            this.mOtherChar = pOtherChar;
            this.mActiveChar = pActiveChar;
            this.mTimeStamp = pTimeStamp;
            this.mEventType = pEventType;
            this.mDmgType = pDmgtype;
        }

        public String DmgType
        {
            get { return this.mDmgType; }
        }

        public double Amount
        {
            get { return this.mAmmount; }
        }

        public String Skill
        {
            get { return this.mSkill; }
        }

        public String OtherChar
        {
            get { return this.mOtherChar; }
        }

        public String ActiveChar
        {
            get { return this.mActiveChar; }
        }

        public long TimeStamp
        {
            get { return this.mTimeStamp; }
        }

        public ParsableLogEntry.EventTypes EventType
        {
            get { return this.mEventType; }
        }

        public override string ToString()
        {
            return this.ActiveChar + " " + this.EventType.ToString() + " " + this.Amount + " " + this.DmgType + " " + this.Skill + " " + this.OtherChar;
        }
    }
}
